<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

        <div class="form">
            <div class="form_header">
                <span style="float: left">LIST FAQS</span>
                <br style="clear:both;"/>
            </div>
        </div>
        <div style="margin-top: 10px;width: 100%;">
    <table class="list" style="width: 100%;">
        <tr>
            <th>QUESTION</th>
            <th>ANSWER</th>
            <th>FUNCTION</th>

        </tr>
        <logic:iterate id="faqitem" name="faqlist" scope="request" indexId="i">
        <tr class="${(i%2==0)?"odd":"even"}">
            <td class="left">${faqitem.question}</td>
            <td class="center">${faqitem.answer}</td>
  
            <td class="center">
                <a class="edit" href="faqedit.do?faqId=${faqitem.FAQId}" title="Edit FAQ"><em></em></a>
                <a class="del" href="faqdelete.do?faqId=${faqitem.FAQId}" title="Delete FAQ" onclick="return confirm('Do you want to delete this FAQ ?')"><em></em></a>
            </td>
        </tr>
        </logic:iterate>

    </table>
</div>
